package com.wlgc.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseMapper {
    @Select("select distinct courseName from student_course_view where sid=#{sid}")
    public List<String> getCourseBySid(@Param("sid") int sid);
    @Select("select distinct courseName from student_course_view")
    public List<String> getAllCourse();
    @Select("select distinct courseName from student_course_view where cno=#{cno}")
    public List<String> getCourseByClass(@Param("cno") int cno);
}
